/* x86.Virtualizer
 * Copyright 2007 ReWolf
 * Contact:
 * rewolf@rewolf.pl
 * http://rewolf.pl
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 */


#ifndef _POLY_ENCDEC_H_
#define _POLY_ENCDEC_H_

extern BYTE _vm_poly_enc[] =
{
0x56, 0x50, 0x51, 0x8B, 0x74, 0x24, 0x10, 0x33, 0xC9, 0x8A, 0x06, 0x90, 0x90, 0x90, 0x90, 0x90,
0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90,
0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90,
0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90,
0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90,
0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90,
0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x88, 0x06, 0x41, 0x46, 0x3B, 0x4C, 0x24,
0x14, 0x75, 0x96, 0x59, 0x58, 0x5E, 0xC2, 0x0C, 0x00
};
//+11


/*
push	esi
push	eax
push	ecx
mov	esi, dword ptr [esp + 10h]
xor	ecx, ecx
_loop:
mov	al, byte ptr [esi]


;...
db 60 DUP (90h)	;commands 2-bytes
db 30 DUP (90h)	;junks 3-bytes
;...

xor	eax, dword ptr [esp + 18h]
mov	byte ptr [esi], al
inc	ecx
inc	esi
cmp	ecx, dword ptr [esp + 14h]
jnz	_loop
pop	ecx
pop	eax
pop	esi
ret	0Ch
*/

#endif